package com.service.mapper;

import com.service.pojo.User;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * 用户服务层
 */
public interface IUserMapper extends Mapper<User> {

    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    @Select("select id,user_name from t_user where id=#{id}")
    User findOneUser(Integer id);
}
